<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/apps/appsinstall" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>{$Think.Lang.toInstallApp}</h1>
    </div>
    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="">{$Think.Lang.appIcon}</th>
              <th style="">{$Think.Lang.appName}</th>
              <th style="">{$Think.Lang.appAlias}</th>
              <th style="">{$Think.Lang.appIntroduction}</th>
              <th style="">{$Think.Lang.trusteeship}</th>
              <th style="">{$Think.Lang.author}</th>
              <th style="">{$Think.Lang.contributor}</th>
              <th style="">{$Think.Lang.operating}</th>
            </tr>
          </thead>
          <tbody>
            <php>if(empty($uninstalled)) {</php>
            <tr>
              <td>{$Think.Lang.noInstallApp}</td>
            </tr>
            <php>}</php>

            <volist id="vo" name="uninstalled">
              <tr style="text-align: left;">
                <td>
                  <img src="{$vo['icon_url']}" width="30" />
                </td>
                <td>
                  <php>if(!empty($vo['homepage_url'])){</php> <a href="{$vo['homepage_url']}" target="_blank">{$vo['app_name']}</a>
                  <php>}else {</php>{$vo['app_name']}
                  <php>}</php>
                </td>
                <td>{$vo['app_alias']}</td>
                <td>{$vo['description']}</td>
                <td>{$vo['host_type_alias']}</td>
                <td>
                  <php>if(!empty($vo['author_homepage_url'])){</php> <a href="{$vo['author_homepage_url']}" target="_blank">{$vo['author_name']}</a>
                  <php>}else {</php>{$vo['author_name']}
                  <php>}</php>
                </td>
                <td>{$vo['contributor_names']}</td>
                <td><a href="{:URL('admin/Apps/preinstall',array('path_name'=>$vo['path_name']))}">安装</a>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</body>

</html>
